from core.api_util import api_util
from utils.response_util import process_response


def login(username, password,  check_code):
    """
    用户登录接口
    :param username:
    :param password:
    :return:
    """
    json_data = {"userName": username, "password": password, "ValidateCode": check_code}
    response = api_util.user_login(params=json_data)
    return process_response(response)
